﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using STLGROUP.Layers.Presentations.FormBase;

namespace QuanLyBanHang.SystemForms
{
    public partial class frmThemes : frmBase
    {
        /// <summary>
        /// change themes form
        /// </summary>
        /// <author>vietsang</author>
        /// <date>01/11/2011</date>

        public frmThemes()
        {
            InitializeComponent();
        }

        #region Events
        //buttom thoat.
        private void btnThoat_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        //checked radiobuttom.
        private void rdo_CheckedChanged(object sender, EventArgs e)
        {
            RadioButton rdo = sender as RadioButton;
            if (rdo.Checked)
            {
                if (rdo.Text == "Office2007Blue")
                {
                    this.styleManager1.ManagerStyle = DevComponents.DotNetBar.eStyle.Office2007Blue;
                }
                if (rdo.Text == "Office2007Silver")
                {
                    this.styleManager1.ManagerStyle = DevComponents.DotNetBar.eStyle.Office2007Silver;
                }
                if (rdo.Text == "Office2007Black")
                {
                    this.styleManager1.ManagerStyle = DevComponents.DotNetBar.eStyle.Office2007Black;
                }
                if (rdo.Text == "Office2007VistaGlass")
                {
                    this.styleManager1.ManagerStyle = DevComponents.DotNetBar.eStyle.Office2007VistaGlass;
                }
                if (rdo.Text == "Office2010Blue")
                {
                    this.styleManager1.ManagerStyle = DevComponents.DotNetBar.eStyle.Office2010Blue;
                }
                if (rdo.Text == "Office2010Silver")
                {
                    this.styleManager1.ManagerStyle = DevComponents.DotNetBar.eStyle.Office2010Silver;
                }
                if (rdo.Text == "Office2010Black")
                {
                    this.styleManager1.ManagerStyle = DevComponents.DotNetBar.eStyle.Office2010Black;
                }
                if (rdo.Text == "Windows7Blue")
                {
                    this.styleManager1.ManagerStyle = DevComponents.DotNetBar.eStyle.Windows7Blue;
                }
            }
        }

        //ap dung.
        private void btnApDung_Click(object sender, EventArgs e)
        {
            this.Close();
        }
        #endregion
    }
}
